/*** 
 * @Author: Colin Dai
 * @Date: 2022-04-30 09:33:26
 * @LastEditors: Colin Dai
 * @LastEditTime: 2022-05-02 17:26:16
 * @FilePath: \intelligent-trash\src\ai-audio.h
 * @Description: AI语音交互相关逻辑头文件
 * @dailianzheng@163.com
 * @Copyright (c) 2022 by Colin.Dai, All Rights Reserved. 
 */

#ifndef __AI_AUDIO_H__

#define __AI_AUDIO_H__




/**
 * @brief 结构定义
 * 
 */


/**
 * @brief 语音接受命令枚举
 * 
 */
typedef enum
{
    CMD_R_A_NULL = 0x00,//空指令
    CMD_R_A_THROW = 0x01,//扔垃圾
    CMD_R_A_LEFT  = 0x02,//向左走
    CMD_R_A_RIGHT  = 0x03,//向右走
    CMD_R_A_FRONT = 0x04,//向前走
    CMD_R_A_BACK = 0x05, //向后走
    CMD_R_A_OPEN = 0x06, //开盖
    CMD_R_A_CLOSE = 0x07, //关盖
    CMD_R_A_STOP = 0x08 //停止    
}AUDIO_RECV_CMD_TYPE;

/**
 * @brief 发送指令播放语音
 * 
 */
typedef enum
{
    CMD_S_A_ASKTYPE = 0x01,//问垃圾类型 
    CMD_S_A_HELP = 0x02 ,//被挡住求助
    CMD_S_A_SONG = 0x03,//说儿歌
    CMD_S_A_AGAIN = 0x04 //没听清重复
    
}AUDIO_SEND_CMD_TYPE;



/**
 * @brief 命令定义
 * 
 */



void init_AI_audio();

AUDIO_RECV_CMD_TYPE check_audio_cmd();

void send_audio_cmd(AUDIO_SEND_CMD_TYPE cmd);

#endif
